<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>



    <script>
        // let str = "";
        // let and = prompt("请问需要几行？")
        // for(let i = 0;i < and;i++){
        //     for(let j = 0;j<=i;j++){
        //         str = str + "*"
        //     }
        //     str= str + "\n"
        // }
        // console.log(str)
        let strs = "";
        for (let a = 1; a <= 9; a++) {
            for (let b = 1; b <= a; b++) {
                // strs = strs + b + "*" + a + "=" + a * b + "\t";
                strs+=`${b}*${a}=${a*b}\t`
            }
            strs += "\n"
        }
        console.log(strs)





    </script>
</body>

</html>